import { localUrl, baseUrl, grayUrl } from './config'
import { oldHTTP } from './api';
import { type authParam, type authResult } from '../types/auth'

const getaccessTokenOnlyByTokenSNO = function (data: authParam): Promise<authResult> {
    let requestUrl = baseUrl + '/Demo/getaccessTokenOnlyByTokenSNO.do';
    return oldHTTP.get(requestUrl, data);
};

const getaccessTokenOnlyByTokenSNOs = function(data:any): Promise<any> {
    let requestUrl = localUrl + '/interfaces/unityhand/getAccessToken.do';// 测试环境获取
    return oldHTTP.get(requestUrl, data);
};

export { getaccessTokenOnlyByTokenSNO, getaccessTokenOnlyByTokenSNOs };